<?php
// +----------------------------------------------------------------------
// | OneThink [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013 http://www.onethink.cn All rights reserved.
// +----------------------------------------------------------------------
// | Author: yangweijie <yangweijiester@gmail.com> <code-tech.diandian.com>
// +----------------------------------------------------------------------

namespace Admin\Model;
use Think\Model;

/**
 * 插件模型Goodshops
 * @author yangweijie <yangweijiester@gmail.com>
 */

class GoodshopsModel extends Model {

 	protected $_validate = array(
        array('shopname', 'require', '商家名称不能为空', self::MUST_VALIDATE, 'regex', self::MODEL_BOTH),
  	    array('shoplinkman', 'require', '联系人不能为空', self::MUST_VALIDATE, 'regex', self::MODEL_BOTH),	     
 	    array('shoptel','/^1[3|4|5|8][0-9]\d{4,8}$/','手机号码错误！','0','regex',1)
	    
 	);
	


	
}